<!-- comments block start -->
<div id="commentswrapper" class="grid_8 alpha">

<?php
// Do not delete these lines
	if (!empty($_SERVER['SCRIPT_FILENAME']) && 'comments.php' == basename($_SERVER['SCRIPT_FILENAME']))
		die ('Please do not load this page directly. Thanks!');
	if ( post_password_required() ) { ?>
		<p class="nocomments"><?php _e( 'This post is password protected. Enter the password to view comments.', 'sofa_suppastore' ); ?></p>
	<?php
		return;
	}
?>

<!-- You can start editing here. -->

<?php if ( have_comments() ) { ?>
        
        <h1 id="commenttitle" class="clearfix"><?php _e( "Comments", "sofa_suppastore" ); ?> ( <?php comments_number( '0', '1', '%' ); ?> )</h1>
        <span class="underline clearfix">&nbsp;</span>
        
		<ol class="commentlist grid_8 alpha omega" id="thecomments">
				<?php wp_list_comments( 'callback=savatar_comments' ); ?>
		</ol>
        
		<div id="pagination" class="wp-pagenavi grid_8 alpha omega"><span class="nava"><?php paginate_comments_links( array( 'prev_text' => '&laquo;', 'next_text' => '&raquo;' ) ); ?></span></div>
        
<?php } else { // this is displayed if there are no comments so far ?>

<?php if ( !comments_open() && !is_page() ) { ?>

		<p class="nocomments"><?php _e( "Comments are closed!", "sofa_suppastore" ); ?></p>
        
<?php } // end ! comments_open() ?>

<?php } // end have_comments()


$fields = array(
		'author' => '<div class="left fluid_grid_4 alpha comment-form-author">' .
		'<label for="author">' . __( 'Name', 'sofa_suppastore' ) . '<input class="inputfield" id="author" name="author" type="text" value="' . esc_attr( $commenter[ 'comment_author' ] ) . '" tabindex="111" /></label></div>',
		'email'  => '<div class="right fluid_grid_4 omega textright comment-form-email">' .
		'<label for="email"><span class="qleft">' . __( 'E-mail', 'sofa_suppastore' ) . '</span><input class="inputfield" id="email" name="email" type="text" value="' . esc_attr( $commenter[ 'comment_author_email' ] ) . '" tabindex="112" /></label></div>',
		'url'    => '<div class="left fluid_grid_8 alpha omega comment-form-url">' .
		'<label for="url">' . __( 'Website', 'sofa_suppastore' ) . '<input class="inputfield" id="url" name="url" type="text" value="' . esc_attr( $commenter[ 'comment_author_url' ] ) . '" tabindex="113" /></label></div>',
		);
$args = array(
		'fields'               => apply_filters( 'comment_form_default_fields', $fields ),
		'comment_notes_before' => '',
		'comment_field'        => '<div class="left fluid_grid_8 alpha omega comment-form-comment"><label for="comment">' . 
		 __( "Comment", "sofa_suppastore" ) . '</label><textarea class="textareainput" aria-required="true" rows="10" name="comment" id="comment" tabindex="114"></textarea></div>',
		'comment_notes_after'  => '',
		'title_reply'          => __( 'Add Your Comment', 'sofa_suppastore' ),
		'title_reply_to'       => __( 'Reply', 'sofa_suppastore' ), 
		'cancel_reply_link'    => __( 'Cancel Comment Reply?', 'sofa_suppastore' ),
		'label_submit'         => __( 'POST COMMENT', 'sofa_suppastore' )
		);

comment_form( $args );

?>

</div>

<!-- comments block end -->